<%@page import="com.yh.entity.Zhanfeng"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JSTL</title>
<style type="text/css">
pre {
	font-size: 2rem;
	line-height: 2;
}
</style>
</head>
<body>
	<pre>
	2. c:forEach:  参照：admin/user-list.jsp
	
	3. c:if:
	
	4. c:choose:   不建议用
	
	5. c:out：
	&lt;%
	pageContext.setAttribute("a", "aaaa");
	pageContext.setAttribute("b", "&lt;b>bbbbb&lt;/b>");
	%&gt;<%
	pageContext.setAttribute("a", "aaaa");
	pageContext.setAttribute("b", "<b>bbbbb</b>");
	%>
	a:${a }
	b:${b }
	c:${c }
	a:<c:out value="${a }" />
	b:<c:out value="${b }" />
	b:<c:out value="${b }"  escapeXml="false"/>
	c:<c:out value="${c }" default="默认值" /><%--c:out 可设置默认值 --%>
	
	6. c:set
	<%request.setAttribute("name", "value"); %>&lt;%request.setAttribute("name", "value"); %&gt;
	<c:set scope="request" var="name" value="value1"/>&lt;c:set scope="request" var="name" value="value1"/&gt;
	scope: page request session application
	name=${name }

	<%request.setAttribute("user", new Zhanfeng()); %>&lt;%request.setAttribute("user", new Zhanfeng()); %&gt;
	${user }
	<c:set target="${user }" property="zfName" value="admin"/>
	<c:set target="${user }" property="zfId" value="1"/>
	${user }
	</pre>
	
	<c:import url="http://www.baidu.com" charEncoding="UTF-8"><c:param name="key" value="java"/></c:import>
	
	<%-- <c:redirect url="http://www.sogou.com"></c:redirect>--%>
</body>
</html>